<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
    <div v-for="(addr,i) in addrs">
        {{i}}--{{addr}}<br>
    </div>
    <hr>
    <div v-for="(name,n) in names">
        {{n+1}}:{{name}}
    </div>

</div>
<script src="js/vue.js"></script>
<script>
    //1.创建vue对象
    new Vue({
        el: "#app",
        data() { //简化书写
            return {
                username: "",
                url: "https://www.baidu.com",
                count:3,
                addrs:["北京","上海","西安","宿迁"],
                names:["狗剩","王毛","杏儿","杨三"]
            }
        }
    });
</script>
</body>
</html>